﻿using System;
using System.Threading.Tasks;

namespace my.cache
{
    public interface ICache
    {
        Task<string> GetAsync(string key);

        Task<T> GetAsync<T>(string key) where T : new();

        Task SetAsync(string key, object value, int expireSeconds = 0);
    }
}
